<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp"%>
<!doctype html>
<html>
<head>
<title>我的积分</title>
</head>
<body ontouchstart>
	<header class="contHeader">
		<div class="contOHeader">
			<h1>我的积分</h1>
			<div class="contOHeadBack">
				<a href="javascript:history.go(-1);">
					<img src="${staticPath}/images/back2.png">
				</a>
			</div>
		</div>
	</header>
	<div class="bd">
		<div class="weui_cells">
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p style="float: left; padding-right: 20px; line-height: 60px;">我的积分：
						<c:if test="${commpoints == null }">0</c:if>
						<c:if test="${commpoints != null }">${commpoints }</c:if>
					</p>
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p style="float: left; padding-right: 20px; line-height: 60px;">可用积分：${points }</p>
            		<a href="javascript:exchange();" class="weui_btn weui_btn_mini weui_btn_primary" style="margin-top: 15px;">兑换现金</a>
					<input type="hidden" name="isMember" id="isMember" value="${isMember }"/>
				</div>
			</div>
		</div>
		<div class="weui_cells weui_cells_access">
			<a class="weui_cell" href="javascript:fundflow(50);">
				<div class="weui_cell_bd weui_cell_primary">
					<p>我的订单积分</p>
				</div>
				<div class="weui_cell_ft"></div>
			</a>
			<a class="weui_cell" href="javascript:fundflow(61);">
				<div class="weui_cell_bd weui_cell_primary">
					<p>会员订单积分</p>
				</div>
				<div class="weui_cell_ft"></div>
			</a>
			<a class="weui_cell" href="javascript:fundflow(60);">
				<div class="weui_cell_bd weui_cell_primary">
					<p>推广积分</p>
				</div>
				<div class="weui_cell_ft"></div>
			</a>
			<c:if test="${isMember == false }">
			<a class="weui_cell" href="javascript:fundflow(70);">
				<div class="weui_cell_bd weui_cell_primary">
					<p>兑换记录</p>
				</div>
				<div class="weui_cell_ft"></div>
			</a>
			</c:if>
			<a class="weui_cell" href="javascript:;">
				<div class="weui_cell_bd weui_cell_primary">
					<p style="font-size: 12px;">注：订单积分确认收货后7日内到达个人积分账户</p>
				</div>
			</a>
		</div>
	</div>
</body>

<script type="text/javascript" src="${staticPath}/js/app/commission/performance.js"></script>
</html>
